﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ImagesBrowser.aspx.cs" Inherits="admin_ImagesBrowser" %>
<%@ Import Namespace="NTTHAO.CommonWeb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Editor Image Browser</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />

<script type="text/javascript" src="resources/js/yui/yahoo-dom-event/yahoo-dom-event.js"></script> 
<style type="text/css" media="screen">
    body 
    {
    	margin: 0px;
    	padding: 0px;
    }
    #doc {
        min-width: 500px;
        width: 90%;
    }
    #images p {
        float: left;
        padding: 3px;
        margin: 3px;
        border: 1px solid black;
        height: 100px;
        width: 100px;
        cursor: pointer;
    }
    #images img {
        max-width:100px;
        max-height: 100px;
    }
</style>
</head>
<body>
    <div id="doc" class="yui-t7"> 
        <p><%=LanguageUtility.GetLanguageID(Request, Session) == 1 ? "Click chọn hình để chèn" : "Click on image to insert"%></p>
        <div id="images"> 
        <% for (int i = 0; i < this._ImageFilesList.Length; i++)
        {%>
            <p><img src="ImageProvider.aspx?imgurl=<%=Server.UrlEncode(ROOT_PATH + this._CurrentPath.TrimStart('/') + _ImageFilesList[i]) %>" title="Click me" alt="<%=ROOT_PATH + this._CurrentPath.TrimStart('/') + _ImageFilesList[i]%>" /></p> 
        <% } %>
        </div>
    </div>
</body>
</html>
